<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title><?php echo @$title; ?> </title>
    <meta name="keywords" content="<?php echo CON_KEYWORDS; ?>" />
    <meta name="description" content="<?php echo CON_DESCRIPTION; ?>" />
    <link rel="shortcut icon" href="/favicon.ico" />
    <script src="<?php echo CON_STATIC_URL; ?>js/jquery.js"></script>
    <script src="<?php echo CON_STATIC_URL; ?>js/jquery-ui.js"></script>
    <script src="<?php echo CON_STATIC_URL; ?>js/jquery.form.js"></script>
    <script src="<?php echo CON_STATIC_URL; ?>js/ajaxfileupload.js"></script>
    <script src="<?php echo CON_STATIC_URL; ?>js/gsdai.js"></script>

    <link href="<?php echo CON_STATIC_URL; ?>css/style.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo CON_STATIC_URL; ?>css/neiye.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="<?php echo CON_STATIC_URL; ?>css/jquery-ui.css" />

    <script src="<?php echo CON_STATIC_URL; ?>js/banner.js" type="text/javascript" charset="utf-8"></script>

    <script src="<?php echo CON_STATIC_URL; ?>js/ie6.js"></script>



    <script src="<?php echo CON_STATIC_URL; ?>js/common.js"></script>
    <script src="<?php echo CON_STATIC_URL; ?>js/L_slide.js" type="text/javascript"></script>
<script>
//var _hmt = _hmt || [];
//(function() {
//  var hm = document.createElement("script");
//  hm.src = "//hm.baidu.com/hm.js?21eddeb32a77d93b37b66ac9dbd05893";
//  var s = document.getElementsByTagName("script")[0];
//  s.parentNode.insertBefore(hm, s);
//})();
</script>
</head>

<body>

<div class="head">
    <div class="head-top">
        <div class="w1000">
            <div class="head-top-left l">
            <a href="javascript:void(0)" class="header-tel" style="cursor:default;">&nbsp;&nbsp;&nbsp;服务电话:<?php echo CON_FUWUTEL;?></a>
<!--  
                <img src="/static/images/foot-sprite.png" style="clip:rect(0px 250px 25px 0px);position: absolute;width: 25px;padding: 6px 0px 0px 10px">
                <a href="javascript:void(0)" style="cursor:default;margin-left: 25px; font-size: ">服务电话:<?php echo CON_FUWUTEL;?></a>

                <a href="javascript:void(0)" class="weChatIcon" title="微信二维码"></a>
                <a href="/" class="sinaIcon" title="新浪微博"></a>
                <a href="javascript:void(0)" class="qqIcon" title="官方qq群"></a>-->
            </div>
            
            <div class="head_flow">
         <table><tbody><tr><td height="35">
		 
         <div id="pop" class="weibo">
             <img src="/static/images/weibo.png">
           <div id="weibo" class="pop_con" style="height: 40px; width: 120px; display: none;">
		   
           <div class="content">
             <p>点击关注新浪微博：</p>
             <p><a target="_blank" href="<?php echo CON_WEIBO_URL;?>">@华银资本</a></p>
           </div>
           <s><i></i></s>
           </div></div>
          </td><td>
            <div id="pop" class="weixin">
            <img src="/static/images/weixin.png">
           <div id="weixin" class="pop_con" style="width: 180px; display: none;">
           <div class="content">
                 <div class="l"><img width="70" height="70" src="/static/images/weixin.jpg"></div>
                  <div class="xinxi"><p><span >关注华银资本<br/>微信号：</span></p><p style="color:#2a82c5">华银资本</p></div></div><s><i></i></s></div>
           </div></td>
           <td> <div class="qqq">
		    <a href="javascript:;" alt="官方QQ群: <?php echo CON_DISCUSSION_GROUP;?>" title="官方QQ群: <?php echo CON_DISCUSSION_GROUP;?>">&nbsp;&nbsp;&nbsp;</a></div></td>
           </tr>
           
</tbody>
              </table>
              </div> 
            
            
            
            
            
            <div class="head-top-right r">
                <?php $session_user = $this->session->userdata('ych_user');?>
                <?php if(!empty($session_user)):?>
                    您好<a class="reg-link" href="/user/center.html"><?php echo $session_user['username']?$session_user['username']:$session_user['phone'];?></a>
                    <a class="reg-link" href="/user/logout.html">[退出]</a>
                <?php else:?>
                    <a class="reg-link" style="" href="/login/index.html">登录</a>
                    <a class="reg-link" href="/reg/index.html">注册</a>
                <?php endif;?>
                <a href="/site/help.html">帮助中心</a>
                <a  href='#' onclick="SetHome(this,window.location)">设为首页</a>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="head-main">
        <div class="w1000">
            <div class="logo">
                <a href="/"><img src="<?php echo CON_STATIC_URL;?>images/logo.png"></a><img src="<?php echo CON_STATIC_URL;?>images/slogan.png">
            </div>
            <div class="widget">
                <div class="subWidget">
                    <div style="cursor: pointer;" onclick="set_login_credict()">
                        <div class="sign" style="cursor:pointer"></div>
                        <a href="javascript:void(0);" >每日签到</a>
                    </div>
                </div>
                <div class="subWidget">
                    <div  style="cursor: pointer;" onclick="goShopPage();">
                        <div class="shop" style="cursor:pointer" onclick="goShopPage();"></div>
                        <a href="/shop.html">积分商城</a>
                    </div>
                </div>

            </div>
        </div>
		<div class="clear"></div>
        <div class="nav">
            <div class="w1000">
                <ul>
                    <li><a href="/welcome.html">首页</a></li>
                    <li><a href="/borrow/blist.html">我要投资</a></li>
                    <li><a href="/borrow/publish.html">我要借款</a></li>
                    <li><a href="/user.html">会员中心</a></li>
                    <li><a href="/site/safe.html">安全保障</a></li>
                    <li><a href="/site/about/saa.html">关于我们</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $(".nav li a").click(function(){
            $(this).addClass("hover");
        });
    });
	function goShopPage() {
		window.location.href= '/shop.html';
	}

    function set_login_credict(){
        $.ajax({
            type: "post",
            url: "/user/setlogincredict",
            data: "user_id=<?php echo $session_user['user_id']?>",
            success: function(msg){
                if(msg == 1) {
                    alert("签到成功");
                } else if(msg == 2) {
                    alert("已签到");
                } else {
                    window.location = "/login/index.html";
                }
            }
        });
        return false;
    }
</script>
